-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PushCSC for SparsePage. #4193
Conversation
* Move Push* definitions into cc file. * Add std:: prefix to `size_t` make clang++ happy. * Address monitor count == 0.
@hcho3 I used your testing case but added a |
@hcho3 Sorry, not the same. Will look into this myself. |
@trivialfis Wow, thanks so much for the effort! I'll go ahead and review it today. cc @CodingCat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PushCSC()
function looks good to me. About the test cases, I wonder whether we should actually allow duplicate entries. If we have two entries with the same (row, column) coordinates that have different values, which value "wins"?
I'm not sure what you mean. But as we talked before, it's worth thinking about some architectural changes to |
@trivialfis See this vector:
where the value of feature 0 is undefined (is it 1 or 2)? I suppose this is a limitation of the CSR matrix format. There is an implicit trust that you won't have two feature values with the same feature index. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this for now. We can discuss DMatrix
format after 0.82 release.
std::
prefix tosize_t
to make clang++ happy.close #4037.
close #4130.